export default {
  namespace: "baseModel",
  state: {
    //导航名称
    menuName: "物资管理",
    collapsed: false,
  },

  subscriptions: {
    setup({ dispatch, history }) {},
  },

  effects: {},

  reducers: {
    //设置对应导航的名称
    setMenuName(state, action) {
      state.menuName = action.payload;
      return { ...state, ...action.payload };
    },
    //设置左侧宽度
    setCollapsed(state, action) {
      state.collapsed = action.payload;
      return { ...state, ...action.payload };
    },
  },
};
